<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>个人用品|办公器材|家居生活|家电数码|汽车天地|品牌印象|个人页面</title>
        <meta name="Keywords" content="个人用品|办公器材|家居生活|家电数码|汽车天地|品牌印象|个人页面"/>
        <meta name="Description" content="品购网--你需要的商品信息分享及消费自助网站|首页|个人用品|办公器材|家居生活|家电数码|汽车天地|品牌印象|个人页面"/>
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
        <link href="__PUBLIC__/css/comm.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/css/hangye.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/css/ads.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/css/panel.css" rel="stylesheet" type="text/css" />
        <link href="__PUBLIC__/js/auto/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
        <script src="__PUBLIC__/js/jquery.js" type="text/javascript"></script>
    </head>
    
    
<script type="text/javascript">
    
$(document).ready(function(){
	changeTitle('guanzhu');
}); 


function notShow(id){
	$.getJSON('/Follow/notShow/id/'+id,function(data){
		if(data.success == 1){
			alert(data.message);
			$('.follow_show_'+id).hide();
		}else{
			alert(data.message);
		}
	});
}

function changeTitle(title){
	if(title == 'guanzhu'){
		$(".guanzhu").show();
		$(".lishi").hide();
	}else{
		$(".guanzhu").hide();
		$(".lishi").show();
	}
}
    
</script>
    
    
    
    
    <body>
        <div class="containner"> 
            
<script src="__PUBLIC__/js/comm.js" type="text/javascript"></script>
<script>

    
    function autologin(){
        $.ajax({
            type: "POST",
            url: "__APP__/Home/Index/doLogin",
            dataType: "json",
            data: "auto",
            success: function(data){
                //alert("Data Loaded: " + data);
                if(data != 0){
                    $('#loginform').html('尊敬的'+data.user_name+'欢迎回来!');
                        $('#loginform1').html('<a href="javascript:;" onclick="logout();"><span>退出</span></a>');
                }
                   
            }
        });
    }

    $(function(){
        bindRegedit('__PUBLIC__/htm/regedit.htm','__APP__/Home/Index/regedit');
        autologin();
        $('#loginBtn').click(function(){
            
            var username = $.trim($('#username').val());
            var password = $.trim($('#password').val());
            var verify = $.trim($('#verify').val());
            if(username.length<1){alert("请填写用户名");return false;}
            if(password.length<1){alert("请填写密码");return false;}
            if(password.verify<1){alert("请填写验证码");return false;}
            $.ajax({
                type: "POST",
                url: "__APP__/Home/Index/doLogin",
                dataType: "json",
                data:   "username="+username+"&password="+password,
                success: function(data){
                    //alert("Data Loaded: " + data);
                    if(data == 0){
                        alert('登陆失败，请重试！');
                    }else if(data == 2){
                    	alert('登陆失败，你的邮箱还未被激活，请激活后再试！');
                    }
                    else{
                    	$('#loginform').html('尊敬的'+data.user_name+'欢迎回来!');
                        $('#loginform1').html('<a href="javascript:;" onclick="logout();"><span>退出</span></a>');
                    }
                }
            });
        });
    });
    function logout(){
        $.get("__APP__/Home/Index/logOut", {},function(){window.location.reload();})
    	$("#login_p").show();
		$("#lio").hide();
	}
</script>
<div id="regeditDiv" style="position:absolute;top:0px;margin:auto;z-index:299"></div>
<div id="header"> 
    <!--上半部分-->
    <div class="header_top">
        <div class="top_menu">
            <ul>
                <li id="loginform">用户名：<input id="username" type="text" size="15" style="height: 12px; width: 80px;"  >&nbsp;
                    密码：<input id="password" size="15" type="password" style="height: 12px; width: 80px;" />
                </li>
                <li class="cart" id="loginform1"><a href="javascript:;" id="loginBtn" ><span>登录</span></a></li>
                <li class="point"><a href="javascript:;" id="regeditBtn"><span>注册</span></a></li>
                <!--<li id="date" class="date">2009年10月6</li>日-->
                <!--<li id="week" class="week">星期</li>二-->
                <!--<li id="time" class="time">8：31</li>-->
                <!--<li id="time_pic" class="time_pic"></li>-->
                <!--农历-->
                <!--<li id="chinese_date" class="chinese_date">四月初六</li>-->
                <!--<span class="solar_terms">小满</span>-->
                <li class="ropmenu_r"></li>
            </ul>
        </div>
        <div class="logo"><a href="#"><img src="__PUBLIC__/images/logo.gif" /></a></div>
        <div class="clear"></div>
    </div>
    <!--end 上半部分--> 
    <!--导航及下半部分-->
    <div class="header_main">
        <div class="menu"> 
            <!--导航-->
            <ul class="menu_list1">
                <li class="menu_list1_r">
                    <ul>
                        <ul>
                            <li class="menu_select"><a href="/">首页</a></li>
                            <li><a href="/Industry/index/id/1">个人用品</a></li>
                            <li><a href="/Industry/index/id/2">办公器材</a></li>
                            <li><a href="/Industry/index/id/3">家居生活</a></li>
                            <li><a href="/Industry/index/id/4">家电数码</a></li>
                            <li><a href="/Industry/index/id/5">汽车天地</a></li>
                            <li><a href="/BaseBrand/">品牌印象</a></li>
                            <li><a href="/User/my/">个人页面</a></li>
                        </ul>
                    </ul>
                </li>
            </ul>
            <!--end 导航--> 
            <!--热门搜索-->
            <!--<?php if($memo != ''): ?><ul class="menu_list2">            
	                <?php echo ($memo); ?>
	            </ul><?php endif; ?>--> 
            
            <!--end 热门搜索--> 
            <!--search-->
            <div class="search" style="width:450px; margin:0px 0px 0px 50px; padding:8px; background:none; color:#fff;">
            <span><?php echo ($industry_explain); ?></span>
            </div>
            <div class="search">
                <div class="search_th">
                    <form action="__APP__/Share/shareList/" name="form1" method="post">
                        <input type="text" name="query" value="<?php echo ($query); ?>" class="text" onclick="this.value='';"/>
                        <button class="" type="submit" onclick="document.form1.submit();">搜 索</button>
                    </form>
                </div>
            </div>
            <!--end search--> 
            <!--快捷按钮-->
            <!-- ul class="menu_list3">
					<li>游客您好，获得更好用户体验请注册或登录！</li>
					<li class="cart"><a href="#"><span>登录</span></a></li>
					<li class="point"><a href="#"><span>注册</span></a></li>
				</ul -->
            <!--end 快捷按钮-->
            <div class="clear"></div>
        </div>
        <div class="header_bottom"><div class="menu"></div></div>
    </div>
    <!--end 导航及下半部分--> 
</div>

            <!--导航结束-->
            <div class="body-center">
                <div class="w_tithead"> <strong>您当前的位置是： </strong><a href="">品购网首页</a><?php echo (getIndustry($_GET[id])); ?></div>
                <!--if condition="count($ad_info) gt 0">
                <div class="ad">
                    <div id=lantern>
                                <?php if(is_array($ad_info)): $i = 0; $__LIST__ = $ad_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$one): ++$i;$mod = ($i % 2 )?><li><a href="<?php echo ($one["url"]); ?>" target="_blank"><img src="<?php echo ($one["img"]); ?>" title="<?php echo ($one["title"]); ?>" width="958" /></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                    </div>
                </div>
                </if-->
            <div class="clear"></div>
            <div class="langcon">
                <div class="lcon_top"><span class="lctop_left"></span><span class="lctop_right"></span></div>
                <div class="con">
                    <div class="clear"></div>
                    <div class="item_title">品类索引</div>
                    <div class="more3">重置筛选条件</div>
                    <div class="clear"></div>
                    <div class="spxz">
                        <dl class="fore">
                            <!--						<dt>网络：</dt>-->
                            <dd>
                                <div><a <?php if(empty($category_pid)): ?>class="curr"<?php endif; ?> href="/Industry/index/id/<?php echo ($id); ?>/" id="0">全部</a></div>
                            <?php if(is_array($category_info)): $i = 0; $__LIST__ = $category_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$one): ++$i;$mod = ($i % 2 )?><div><a href="/Industry/index/id/<?php echo ($id); ?>/category_pid/<?php echo ($one["id"]); ?>" <?php if(($category_pid)  ==  $one["id"]): ?>class="curr"<?php endif; ?>><?php echo ($one["name"]); ?></a></div><?php endforeach; endif; else: echo "" ;endif; ?>
                            </dd>
                        </dl>
                        <?php if($category_info1|count != 0  ): ?><dl>
                                <!--						<dt>网络：</dt>-->
                                <dd>
                                    <div><a <?php if(empty($category_pid1)): ?>class="curr"<?php endif; ?> href="/Industry/index/id/<?php echo ($id); ?>/category_pid/<?php echo ($category_pid); ?>" id="0">全部</a></div>
                                <?php if(is_array($category_info1)): $i = 0; $__LIST__ = $category_info1;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$one): ++$i;$mod = ($i % 2 )?><div><a href="/Industry/index/id/<?php echo ($id); ?>/category_pid1/<?php echo ($one["id"]); ?>/category_pid/<?php echo ($category_pid); ?>" <?php if(($category_pid1)  ==  $one["id"]): ?>class="curr"<?php endif; ?>><?php echo ($one["name"]); ?></a></div><?php endforeach; endif; else: echo "" ;endif; ?>
                                </dd>
                            </dl><?php endif; ?>
                        <?php if($category_info2|count != 0  ): ?><dl>
                                <!--						<dt>网络：</dt>-->
                                <dd>
                                    <div><a <?php if(empty($category_pid2)): ?>class="curr"<?php endif; ?> href="/Industry/index/id/<?php echo ($id); ?>/category_pid/<?php echo ($category_pid); ?>/category_pid1/<?php echo ($category_pid1); ?>" id="0">全部</a></div>
                                <?php if(is_array($category_info2)): $i = 0; $__LIST__ = $category_info2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$one): ++$i;$mod = ($i % 2 )?><div><a href="/Industry/index/id/<?php echo ($id); ?>/category_pid2/<?php echo ($one["id"]); ?>/category_pid/<?php echo ($category_pid); ?>/category_pid1/<?php echo ($category_pid1); ?>" <?php if(($category_pid2)  ==  $one["id"]): ?>class="curr"<?php endif; ?>><?php echo ($one["name"]); ?></a></div><?php endforeach; endif; else: echo "" ;endif; ?>
                                </dd>
                            </dl><?php endif; ?>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="con_bot"><span class="cbot_left"></span><span class="cbot_right"></span></div>
            </div>
            <div class="clear"></div>
            <div class="langcon">
                <div class="lcon_top"><span class="lctop_left"></span><span class="lctop_right"></span></div>
                <div class="con">
                    <div class="clear"></div>
                    <div class="item_title">品牌索引</div>
                    <div class="more3">重置筛选条件</div>
                    <div class="clear"></div>
                    <div class="spxz">
                        <dl class="fore">
                            <!--						<dt>网络：</dt>-->
                            <dd>
                                <div><a <?php if(empty($brand_id)): ?>class="curr"<?php endif; ?> href="/Industry/index/id/<?php echo ($id); ?>/category_pid2/<?php echo ($category_pid2); ?>/category_pid/<?php echo ($category_pid); ?>/category_pid1/<?php echo ($category_pid1); ?>" id="0">全部</a></div>
                            
                            
                            <?php if(is_array($brands)): $i = 0; $__LIST__ = $brands;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><div>
                                  <a href="/Industry/index/id/<?php echo ($id); ?>/category_pid2/<?php echo ($category_pid2); ?>/category_pid/<?php echo ($category_pid); ?>/category_pid1/<?php echo ($category_pid1); ?>/brand_id/<?php echo ($vo["id"]); ?>" <?php if(($brand_id)  ==  $vo["id"]): ?>class="curr"<?php endif; ?>>
                                	<?php echo ($vo["name"]); ?>
                                  </a>
                                </div><?php endforeach; endif; else: echo "" ;endif; ?>
                            </dd>
                        </dl>                

                    </div>
                    <div class="clear"></div>
                </div>
                <div class="con_bot"><span class="cbot_left"></span><span class="cbot_right"></span></div>
            </div>
            <div class="clear"></div>
            <div class="shop_clist" style="float:left; width:750px;">
                <div class="shop_l_rightbg"></div>
                <div class="more3"><!-- a href="#">更多&gt;&gt;</a> --></div>
                <div class="sclist_title">商品排行榜</div>
            </div>
<!--            <div class="shop_clist" style="float:right; width:200px;">
                <div class="shop_l_rightbg"></div>
                <div class="sclist_title"></div>
            </div>-->
            <div class="clear"></div>
            <div class="billContent" id="billContent">

                <?php if(is_array($commodity_list)): $i = 0; $__LIST__ = $commodity_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$commodity): ++$i;$mod = ($i % 2 )?><div class="billItems">
                        <span class="name">
                        	<a href="/Share/ShareList/commodity_id/<?php echo ($commodity["id"]); ?>"><?php echo ($commodity["name"]); ?></a>
                        </span>
                        <span class="gz_anniu">
                          <?php if($commodity['is_follow']): ?><img src="__PUBLIC__/images/gz_visited.jpg">
						  <?php else: ?>
							<a href="/Follow/adds/id/<?php echo ($commodity["id"]); ?>" class="gz_link"><img src="__PUBLIC__/images/gz_link.jpg"></a><?php endif; ?>
                       	</span>
                        <div class="billmessage">
                            <div class="brandName"> <img width="50" height="50" src="<?php echo (getLogoImg($commodity["brand_id"])); ?>"/>
                                <div><?php echo (getAssignInfo($commodity["brand_id"],'BaseBrand','name')); ?></div>
                            </div>
                            <div style="height:124px;width:124px;background:gray; margin:0 4px 0 0;">
                            	<img width="120" height="120" src="<?php echo (getCommodityImg($commodity["img"])); ?>"/>
                            </div>
                            <div class="message">
                                <ul>
                                    <li>印象：<span class="yellow"><?php echo ($commodity["brand_num"]); ?></span>条</li>
                                    <li>评分:<span class="yellow"><?php echo ($commodity["score"]); ?></span>分</li>
                                </ul>
                            </div>
                        </div>
                    </div><?php endforeach; endif; else: echo "" ;endif; ?>
				<div class="billItems" style="text-align: right; height: 15px; width: 740px; border: medium none;"><?php echo ($page); ?></div>
                <div class="clear"></div>
            </div>
            <div class="billContent2">
            	
				<div class="guanzhu">
					<a href="javascript:void(0);" onclick="changeTitle('guanzhu');"><img src="__PUBLIC__/images/gz_bai.gif"></a>
					<a href="javascript:void(0);" onclick="changeTitle('lishi');"><img src="__PUBLIC__/images/ls_lan.gif"></a>
				</div>
				<div class="lishi">
					<a href="javascript:void(0);" onclick="changeTitle('guanzhu');"><img src="__PUBLIC__/images/gz_lan.gif"></a>
					<a href="javascript:void(0);" onclick="changeTitle('lishi');"><img src="__PUBLIC__/images/ls_bai.gif"></a>
				</div>
				
				
                <div class="guanzhu ad_div">
					<ul>
					<?php if(is_array($sp_list)): $i = 0; $__LIST__ = $sp_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): ++$i;$mod = ($i % 2 )?><li class="follow_show_<?php echo ($val["id"]); ?>"><img src="<?php echo (getCommodityImg($val["info"]["img"])); ?>" height="60" width="60">
							<img src="<?php echo (getLogoImg($val["brand_info"]["brand_img"])); ?>" height="40" width="40">
							<a href="javascript:void(0);" onclick="notShow(<?php echo ($val["id"]); ?>);"><img class="close" src="__PUBLIC__/images/close.jpg"></a>
							<p><?php echo (getAssignInfo($val["info"]["brand_id"],'BaseBrand','name')); ?>　　<span><?php echo ($val["info"]["name"]); ?></span></p>
							<p><span>关注：<?php echo ($val["sp_count"]); ?>人</span>　　<span>评分：<?php echo ($val["info"]["score"]); ?>分</span></p>
							<p>该商品有新帖子<?php echo ($val["new_tiezi_num"]); ?>条</p>
						</li>
						<div class="dashed"></div><?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</div>
                <div class="lishi ad_div">
					<ul>
					<?php if(is_array($lishi)): $i = 0; $__LIST__ = $lishi;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): ++$i;$mod = ($i % 2 )?><li class="follow_show_<?php echo ($val["id"]); ?>"><img src="<?php echo (getCommodityImg($val["img"])); ?>" height="60" width="60">
							<img src="<?php echo (getLogoImg($val["brand_info"]["brand_img"])); ?>" height="40" width="40">
							<a href="javascript:void(0);" onclick="notShow(<?php echo ($val["id"]); ?>);"></a>
							<p><?php echo (getAssignInfo($val["brand_id"],'BaseBrand','name')); ?>　　<span><?php echo ($val["name"]); ?></span></p>
							<p><span>关注：<?php echo ($val["brand_num"]); ?>人</span>　　<span>评分：<?php echo ($val["score"]); ?>分</span></p>
						</li>
						<div class="dashed"></div><?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</div>
                <div class="clear"></div>
            
                <?php if(is_array($ad_info_right)): $i = 0; $__LIST__ = $ad_info_right;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$as_one): ++$i;$mod = ($i % 2 )?><div class="ad_div">
                          <a href="<?php echo ($as_one["url"]); ?>" target="_blank"><img src="<?php echo ($as_one["img"]); ?>" title="<?php echo ($as_one["title"]); ?>" width="200"/></a>
                      </div><?php endforeach; endif; else: echo "" ;endif; ?>
                <div class="clear"></div>
            </div>
            <div class="clear"></div>
        </div>
        <!--页尾开始-->
        <div class="pagefoot1"> 
            <span><a href="http://www.360pick.com/about360pick.html">关于品购</a></span>
          <span><a href="http://www.360pick.com/mianzeshengming.html">免责声明</a></span>
          <span><a href="http://www.360pick.com/linkother.html">友情链接</a></span>
          <span><a href="http://www.360pick.com/map.html">网站地图</a></li></span>
          <span><a href="http://www.360pick.com/yijianfankui.html">意见反馈</a></span>
          <span><a href="http://www.360pick.com/contactus.html">联系我们</a></span>
                
            <div class="pagefoot2"> 品购<a>360pick.com</a>版权所有 <a href="http://www.miibeian.gov.cn">津ICP备10200350号</a> </div>
        </div>

        <!--页尾结束--> 
        <!--页尾部分--> 
    </div>
</body>
</html>